package com.leolian.transaction;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.leolian.spring02.transaction.demo4.AccountService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:transaction/applicationContext4.xml")
public class TransactionTest4 {
	
	@Resource(name="accountService")
	private AccountService accountService;
	
	
	@Test
	public void testTransfer(){
		accountService.transfer("aaa", "bbb", 200d);
		System.out.println("转账完毕！");
	}
	
}
